package com.usian.model;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/14 15 40
 * */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ToString
@TableName(value = "train")
public class Train {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String tname;
    private String lid;
    private Integer num;
    private Integer advance;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date starttime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date endtime;
    private Integer sort;
    private String photo;
    private Integer status;
    private Integer target;
    private String cid;
    private String info;

}
